import request from '@/utils/request'

// 查询邮箱账号列表
export function listEmailAccount(query) {
  return request({
    url: '/system/EmailAccount/list',
    method: 'get',
    params: query
  })
}

// 查询邮箱账号详细
export function getEmailAccount(id) {
  return request({
    url: '/system/EmailAccount/' + id,
    method: 'get'
  })
}

// 新增邮箱账号
export function addEmailAccount(data) {
  return request({
    url: '/system/EmailAccount',
    method: 'post',
    data: data
  })
}

// 修改邮箱账号
export function updateEmailAccount(data) {
  return request({
    url: '/system/EmailAccount',
    method: 'put',
    data: data
  })
}

// 删除邮箱账号
export function delEmailAccount(id) {
  return request({
    url: '/system/EmailAccount/' + id,
    method: 'delete'
  })
}
